// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property,menu} = cc._decorator;

@ccclass
@menu("Utility/TexTipsShow")
export default class TexTipsShow extends cc.Component {

    @property(cc.Label)
    tex_tips: cc.Label = null;

    start () {

    }
	showTips(tips:string)
	{
		var self = this;
		this.tex_tips.string = tips
		this.scheduleOnce(function() {
			self.node.destroy();
		},
		1)
	}
}
